home *** CD-ROM | disk | FTP | other *** search
- /* 00010000
- * Name: GOPCLIGV REXX 00020000
- * VM TCP/IP Network GOPHER Client graphics viewer 00030000
- * This file is part of CMS Gopher and not part of VMGIF. 00040000
- * Author: Rick Troth, Rice University, Information Systems 00050000
- * Date: 1992-Dec-23 00060000
- * 00070000
- * Note: the first record must be at least long enough 00080000
- * to identify the graphics format (magic number) 00090000
- */ 00100000
- 00110000
- /* 00120000
- * Copyright 1992 Richard M. Troth. This software was developed 00130000
- * with resources provided by Rice University and is intended 00140000
- * to serve Rice's user community. Rice has benefitted greatly 00150000
- * from the free distribution of software, therefore distribution 00160000
- * of unmodified copies of this material is not restricted. 00170000
- * You may change your own copy as needed. Neither Rice 00180000
- * University nor any of its employees or students shall be held 00190000
- * liable for damages resulting from the use of this software. 00200000
- */ 00210000
- 00220000
- /* Trace "OFF" */ 00230000
- 00240000
- 'PEEKTO RECORD' 00250000
- Select 00260000
- When Left(record,5) = '4749463837'x Then Signal GIF 00270000
- Otherwise 'OUTPUT' "unknown graphics format" 00280000
- End /* Select */ 00290000
- 00300000
- Exit rc * (rc ^= 12) 00310000
- 00320000
- 00330000
- 00340000
- /* ------------------------------------------------------------------ */00350000
- GIF: 00360000
- 00370000
- /* verify that we have the VMGIF disk accessed */ 00380000
- 'CALLPIPE CMS STATE VMGIF MODULE * | *:' 00390000
- If rc ^= 0 Then Exit rc 00400000
- 00410000
- /* try to stash the input stream in a temp file */ 00420000
- 'CALLPIPE *: | > TEMP#GIF GIF A3' 00430000
- If rc ^= 0 Then Do 00440000
- grc = rc 00450000
- 'CALLPIPE COMMAND ERASE TEMP#GIF GIF A' 00460000
- Exit grc 00470000
- End /* If .. Do */ 00480000
- 00490000
- /* ensure that the right libraries are GLOBALed */ 00500000
- /* (I loathe doing this) */ 00510000
- 'CALLPIPE COMMAND QUERY TXTLIB' , 00520000
- '| STRIP LEADING STRING /TXTLIB = / | JOIN * | VAR TXTLIB' 00530000
- Upper txtlib; If Strip(txtlib) = "NONE" Then txtlib = "" 00540000
- 'CALLPIPE COMMAND GLOBAL TXTLIB ADMPLIB ADMGLIB' txtlib 00550000
- 00560000
- /* now run VMGIF */ 00570000
- 'CALLPIPE CMS VMGIF -em5 TEMP#GIF | *:'; grc = rc 00580000
- 00590000
- /* restore GLOBALed libraries */ 00600000
- 'CALLPIPE COMMAND GLOBAL TXTLIB' txtlib 00610000
- 00620000
- Exit grc 00630000
- 00640000
-